﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HotelManager.Data_Transfer_Layer;
using HotelManager.Data_Access_Layer;
using System.Data.OleDb;
using System.Data;

namespace HotelManager.Business_Logic_Layer
{
    class loaidichvuBLO
    {
        #region Variables
        private string error;
        private loaidichvuDAO DAO;
        #endregion

        #region Methods
        public loaidichvuBLO()
        {
            DAO = new loaidichvuDAO();
            error = "";
        }
        public loaidichvuDTO[] get()
        {
            return DAO.get();
        }
        public string[] get_arr()
        {
            return DAO.get_arr();
        }
        public loaidichvuDTO View_Detail(int ldv_id)
        {
            return DAO.View_Detail(ldv_id);
        }
        public int View_id(string ldv_tenloaidv)
        {
            return DAO.View_id(ldv_tenloaidv);
        }
        public void Delete(loaidichvuDTO obj)
        {
            DAO.Delete(obj);
        }
        public void Insert(loaidichvuDTO obj)
        {
            DAO.Insert(obj);
        }
        public void Update(loaidichvuDTO obj)
        {
            DAO.Update(obj);
        }
        #endregion
    }
}
